

            
// This code is a generated code by a tool
// designed and coded by Shohdi Mohamed Elsheemy ( shohdi@gmail.com )

            
using System;
using System.Collections.Generic;
using System.Web;
namespace DatabaseComponent
{
[Serializable]
public partial class Area
{
System.Int64 _ID =-1;
public System.Int64 ID
{
get { return _ID;}
set { _ID = value;}
}
System.String _AreaNameAR ="";
public System.String AreaNameAR
{
get { return _AreaNameAR;}
set { _AreaNameAR = value;}
}
System.String _AreaNameEN ="";
public System.String AreaNameEN
{
get { return _AreaNameEN;}
set { _AreaNameEN = value;}
}
System.Int64? _ParentID =null;
public System.Int64? ParentID
{
get { return _ParentID;}
set { _ParentID = value;}
}
System.String _Code ="";
public System.String Code
{
get { return _Code;}
set { _Code = value;}
}
public Area()
{
}
public Area(System.String __AreaNameAR,System.String __AreaNameEN,System.Int64? __ParentID,System.String __Code)
{
_AreaNameAR = __AreaNameAR;
_AreaNameEN = __AreaNameEN;
_ParentID = __ParentID;
_Code = __Code;
}
public Area(System.Int64 __ID,System.String __AreaNameAR,System.String __AreaNameEN,System.Int64? __ParentID,System.String __Code)
{
_ID = __ID;
_AreaNameAR = __AreaNameAR;
_AreaNameEN = __AreaNameEN;
_ParentID = __ParentID;
_Code = __Code;
}


             public override bool Equals(object obj)
         {
             if (obj is Area)
             {
                 Area newObj = (Area)obj;

                 if (newObj.ID == this.ID )
                 {
                     return true;
                 }
                 else
                 {
                     return false;
                 }
             }

             else
             {
                 return false;
             }

            
         }            











             }
}
